<div class="docs">
  <table cellspacing="3" border="true">
    <thead>
      <tr>
        <th>
          Name
        </th>
        <th>
          Description
        </th>
        <th>
          Downloader
        </th>
       </tr>
    </thead>
    <tbody>
      <?php if (!empty($files_id)): ?>
          <?php foreach ($files_id as $files):?>
             <?php $fs = $files->getFileById($files->getFileId());?>
                  <?php foreach ($fs as $file):?>
                  <tr>
                    <td class="name">
                      <?php echo $file->getName_for_users(); ?>
                    </td>
                    <td class="description">
                      <?php echo $file->getDescription(); ?>
                    </td>
                    <td class="user">
                        <?php if ($file->getUser()==''): ?>
                            Nobody
                        <?php else:?>
                           <?php echo $file->getLastLoaderFullName(); ?>
                        <?php endif;?>
                    </td>
                    <?php include_component('menu', 'menu', array('file' => $file,'show'=>$show_file)) ?>
                <?php endforeach; ?>
             <?php endforeach; ?>
           <?php endif;?>
           </tr>
     </tbody>
  </table>
  <?php if ($show_file): ?>
    <a href="<?php echo url_for('upload', $document) ?>"><img src="/images/uploadb.png" align="left"/></a>
  <?php endif;?>
</div>